import request from '../utils/request.js'
export const userCartAdd = (cartObj) => {//加入购物车
   return request.post('/local/cart',cartObj)
}
export const userCartDel = (userid, id) => {//删除购物车
    console.log('勾选商品的id',userid, id);
    return request.delete('/local/cart/', {
        params: { id, userid }
    })
}
export const cartInitGet = (userid) => {//初始化购物车
    return request.get('/local/cart', {
        params: {
            userid
        }
    })
}